package com.yy.wrapper;

/**
 * chapter13  com.yy.wrapper
 * 2023-05-08 16:20
 *
 * @author yy yuyue
 * description : 不可描述
 * @date 2023/5/8 16:20
 */
public class WrapperExercise03 {
    public static void main(String[] args) {
        Integer i11 = 127;
        int i12 = 127;
        //只有局部数据类型, 判断的是
        //值是否相等
        System.out.println(i11 == i12);//T

        Integer i13 = 128;
        int i14 = 128;
        System.out.println(i13 == i14);//T

        Integer i1 = new Integer(127);
        Integer i2 = new Integer(127);
        System.out.println(i1 == i2);//F

        Integer i3 = new Integer(128);
        Integer i4 = new Integer(128);
        System.out.println(i3 == i4);//F

        Integer i5 = 127;//底层是Integer.valueOf(127);
        Integer i6 = 127;//-128~127
        System.out.println(i5 == i6);//T

        Integer i7 = 128;//
        Integer i8 = 128;//
        System.out.println(i7 == i8);//F



        Integer i9 = 127;//底层是Integer.valueOf(127);
        Integer i10 = new Integer(127);
        System.out.println(i9 == i10);//False
//        Object
    }
}
